<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FAQsList.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.FAQsList"  %>
<%@ Register Assembly="TinyMCE" Namespace="IGlobalist.Web.UI" TagPrefix="cc2" %>
 <div id="layuot_question" runat="server" >
    <asp:GridView ID="gvQuestion" runat="server"  AllowPaging="true" autogeneratecolumns="false" 
            CellPadding="6" ForeColor="#333333"  OnRowCommand="gvQuestion_RowCommand" BorderColor="white" BorderWidth="0"  >
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White"  />
            <Columns >
                <asp:TemplateField HeaderText="The Questions">                    
                    <ItemTemplate >                       
                        <tr>
                            <td align="left" style="text-align:justify">
                                <i><b>Question: </b></i> 
                                    <asp:Label ID="lblAnswers" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Question") %>'></asp:Label>
                                
                            </td>                                                        
                                <td align="right" valign="top">
                                    <asp:ImageButton ID="imgAnswers" ImageUrl="~/Admin/Images/edit.gif"  runat="server"   CommandName="answers" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
                                <asp:ImageButton ID="ingDelete" ImageUrl="~/Admin/Images/delete.gif" runat="server" OnClientClick="return confirm('Are you sure you want to delete?');"  CommandName="delanswers" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
                            </td>
                       </tr>
                       <tr>
                            <td colspan="2" align="right">
                                 <i><b><asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Author") %>'></asp:Label></b>
                                        <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Email") %>'></asp:Label></i>
                            </td>
                       </tr>                        
                       <tr>
                            <td colspan="2"><hr />
                            </td>
                       </tr>
                   </ItemTemplate>
                </asp:TemplateField>                           
            </Columns>
            
        </asp:GridView>  
 </div>
 <div id="layout_answers" runat="server" visible="false">
         <table cellpadding="2" cellspacing="2" width="700px">    
         <tr>
            <td colspan="2" align="left" valign="top">
                <b>Answer the questions:</b>
            </td>
         </tr>
         <tr>
            <td colspan="2" align="left" valign="top">
                &nbsp;
            </td>
         </tr>
         
        <tr>
            <td valign="top">
                <b><asp:Label ID="lblNameQuestion" runat="server" Text="Question:"></asp:Label></b>
            </td>
            <td valign="top">
                 <asp:Label ID="lblDisplayQuestion" runat="server" Text=""></asp:Label>
             </td>                       
        </tr>
        
         <tr>
            <td valign="top">
                <b><asp:Label ID="Label3" runat="server" Text="Answers:"></asp:Label></b>
            </td>
            <td>
                <div style="overflow:auto;width:675px;">
                    <cc2:TinyMCE ID="tinyMCEAnswers" runat="server" Theme="Advanced" Resize="false" Height="500px" ToolbarLocation="Top" />
                </div>
             </td>                       
        </tr>          
        </table>    
    </div>
<br />
 Question<asp:TextBox ID="txtQuestion" runat="server"> </asp:TextBox><br>
 Answer<asp:TextBox ID="txtAnswer" runat="server"> </asp:TextBox><br>
 UserName<asp:TextBox ID="txtUserName" runat="server"> </asp:TextBox><br>
 Email<asp:TextBox ID="txtEmail" runat="server"> </asp:TextBox><br>
 Address<asp:TextBox ID="txtAddress" runat="server"> </asp:TextBox><br>
 <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />

